'use strict'

let koa = require('koa');
let app = new koa();

let {sequelize,defineModel,DataTypes}=require('./db');

let User = defineModel('student',{
    name:{
        type :DataTypes.STRING(80)
    },
    age:DataTypes.STRING(80)
});

(async()=>{
    sequelize.sync({force:true}).then(()=>{
        User.create({
            name:"mian",
            age:"1234"
        })
    })
})();

app.listen(6004);

console.log("http://localhost;6004");